package de.baumann.browser.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import de.baumann.browser.R;
import de.baumann.browser.api.net.vo.Notice;

/**
*@author:
*@date:2019/7/10 11:32
*@discription: 公告列表适配器
*/
public class NoticeAdapter extends BaseQuickAdapter<Notice, BaseViewHolder> {

    public NoticeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, Notice item) {
        helper.setText(R.id.tvNoticeTitle, item.getNoticeTitle());
        helper.setText(R.id.tvNoticeTime, item.getCreateTime());
        helper.setText(R.id.tvNoticeContent, item.getNoticeSummary());
    }
}
